﻿@model List<Theater.DataModels.Movie>
<div class="jumbotron well" style="background-color:#acabab">
    <h1>Movie List</h1>
    <a class="btn btn-default" href="/Home/AddMovie/">Add Movie</a>
</div>
<div class="row">
    <div class="col-md-12">
        <table class="table-hover"> 
    @foreach (var movie in Model)
    {
        <tr>
           
            <th> <h3>@movie.Title</h3></th> 
            <td>
                <img src="@movie.Image" style="height:350px; width:250px;" /></td>

               <td> <form method="post" action="/Home/Edit/@movie.Id">
                    <input type="submit" value="Edit" class="btn btn-default" />
                </form></td>
              <td>  <form method="post" action="/Home/Delete/@movie.Id">
                    <input type="submit" value="Delete" class="btn btn-default" /><br />
                </form>
            </td>
        </tr>
    }
    

        </table>


    </div>
</div>